function timeout(delay) {
  return new Promise(resolve=> setTimeout(resolve,delay))
}

timeout(2000).then(() => {
  console.log('wzy');
}).then(() => {
  console.log('wwww');
})